
package Classes;

import java.io.Serializable;

public class User implements Serializable {
    private String id;
    private String lName;
    private String gName;
    private String mName;
    private String type;
    private String username;
    private String password;
    private String status;
    private String classID;
    private String secName;
    private String secID;
    
    public User(String aa, String a, String b) {
        id = aa;
        username = a;
        type = b;
    }
    
    public User(String a, String b, String c, String d, String e) {
        username = a;
        type = b;
        lName = c;
        gName = d;
        mName = e;
    }
    
    public User(String a, String b, String c, String d, String e, String f) {
        lName = a;
        gName = b;
        mName = c;
        username = d;
        password = e;
        type = f;
        
    }
        
    public User(String a, String b, String c, String d, String e, String f, String g, String h) {
        id = a;
        lName = b;
        gName = c;
        mName = d;
        username = e;
        password = f;
        status = g;
        type = h;
        
        
    }
    
    public User(String a) {
        username = a;
    }
    
    public User(String a, String b, String c, String d) {
        id = a;
        lName = b;
        gName = c;
        mName = d;
    }
    
    public User(int a) {
        id = a + "";
    }

    /**
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @return the lName
     */
    public String getlName() {
        return lName;
    }

    /**
     * @param lName the lName to set
     */
    public void setlName(String lName) {
        this.lName = lName;
    }

    /**
     * @return the gName
     */
    public String getgName() {
        return gName;
    }

    /**
     * @param gName the gName to set
     */
    public void setgName(String gName) {
        this.gName = gName;
    }

    /**
     * @return the mName
     */
    public String getmName() {
        return mName;
    }

    /**
     * @param mName the mName to set
     */
    public void setmName(String mName) {
        this.mName = mName;
    }

    /**
     * @return the type
     */
    public String getType() {
        return type;
    }

    /**
     * @param type the type to set
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * @return the username
     */
    public String getUsername() {
        return username;
    }

    /**
     * @param username the username to set
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * @return the password
     */
    public String getPassword() {
        return password;
    }

    /**
     * @param password the password to set
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * @return the status
     */
    public String getStatus() {
        return status;
    }

    /**
     * @param status the status to set
     */
    public void setStatus(String status) {
        this.status = status;
    }
        
    public String getName() {
        return (lName + ", " + gName + " " + (mName).charAt(0));
    }
    
    public String toString() {
        return (id + " " + getName() + "\n" + username + " : " + password + "\n" + status + " " + type);
    }

    /**
     * @return the classID
     */
    public String getClassID() {
        return classID;
    }

    /**
     * @param classID the classID to set
     */
    public void setClassID(String classID) {
        this.classID = classID;
    }

    /**
     * @return the secName
     */
    public String getSecName() {
        return secName;
    }

    /**
     * @param secName the secName to set
     */
    public void setSecName(String secName) {
        this.secName = secName;
    }

    /**
     * @return the secID
     */
    public String getSecID() {
        return secID;
    }

    /**
     * @param secID the secID to set
     */
    public void setSecID(String secID) {
        this.secID = secID;
    }
}
